/*抽取公共部分*/

export default {
	install: function(Vue, options) {
		// 获取loadmore父元素容器高度，实例方法
		Vue.prototype.getBoxHeight = function(apprefs) {
			let headerHeight = this.apprefs.appHeader.$el.offsetHeight;
		    let footerHeight = this.apprefs.appFooter.$el.offsetHeight;
		    let boxHeight = document.body.clientHeight - headerHeight - footerHeight;
		    return boxHeight;
		}
	}
}